//
//  YCExpress2TableViewCell.m
//  lianganyuchu
//
//  Created by iMac on 17/3/3.
//  Copyright © 2017年 杭州桑缇电子商务有限公司. All rights reserved.
//

#import "YCExpress2TableViewCell.h"

@implementation YCExpress2TableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    CGFloat width=kMainScreen_Width-2*kDistance;
    [self.backView addShadowWith:CGSizeMake(width, 190)];
    
    [self.label1 setFont:[UIFont LightFontOfSize:14]];
    [self.label2 setFont:[UIFont LightFontOfSize:16]];
    [self.label3 setFont:[UIFont LightFontOfSize:16]];
    [self.label4 setFont:[UIFont LightFontOfSize:16]];
    [self.label4 setTextColor:TEXT_LIGHT];
    [self.label3 setTextColor:TEXT_DEEP];
    [self.label1 setTextColor:TEXT_DEEP];
    [self.label2 setTextColor:TEXT_DEEP];
    
    [self.labelTime setFont:[UIFont LightFontOfSize:15]];
    [self.labelName setFont:[UIFont LightFontOfSize:15]];
    [self.labelPhone setFont:[UIFont LightFontOfSize:15]];
    [self.labelTime setTextColor:TEXT_MIDDLE];
    [self.labelName setTextColor:TEXT_MIDDLE];
    [self.labelPhone setTextColor:BLUE_COLOR];
    [self.labelPhone click:self action:@selector(clickPhone:)];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)bindWith:(OrderTable *)order
{
    
    
}
-(void)clickPhone:(id)sender
{
    [self.labelPhone callPhoneWith:self.labelPhone.text];
}

@end
